package com.vm.osm.business.dto.eam.project;

import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 项目分页查询请求
 *
 * @author Xuerong Xue
 */
@Data
public class ProjectPageReq implements Serializable {
    @ApiModelProperty(value = "分页数", required = true)
    @NotNull(message = "分页数不能为空")
    private Integer page_num;

    @ApiModelProperty(value = "分页大小", required = true)
    @NotNull(message = "分页大小不能为空")
    private Integer page_size;
    @ApiModelProperty(value = "会话Id", hidden = true)
    private String session_id;

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("page_num", page_num)
                .add("page_size", page_size)
                .add("session_id", session_id)
                .toString();
    }
}
